package com.lab02;

         		public class Golem implements Boss {
 		    private String name;
 		    private int HP;

         		    public Golem() {
        		    }

         		    public Golem(String name, int HP) {
        		        this.name = name;
        		        this.HP = HP;
        		    }

         		    public String getName() {
        	        return name;
        		    }

         		    public void setName(String name) {
        		        this.name = name;
        		    }

         		    public int getHP() {
        		        return HP;
        		    }

         		    public void setHP(int HP) {
        		        this.HP = HP;
        		    }

         		    @Override
 		    public void attack() {
        		        System.out.println("Golem发动了攻击");
        		    }

         		    @Override
 		    public void shift() {
        		        System.out.println("Golem进行了曲线移动");
        		    }

         		    @Override
 		    public void blood() {
        		        while (HP > 0) {
            		            if (HP >= 10) {
                		                System.out.println("受到攻击-25");
                		                HP = HP - 25;
                		                System.out.println("生命剩余值:"+HP);

                		            }
            		            if (HP > 0 && HP < 10) {
                		                HP += 20;
                		                System.out.println("生命低于10  +20");
                		                System.out.println("生命剩余值:"+HP);
                		            }
            		            if (HP <= 25) {
                		                HP-=25;
                		                System.out.println("受到攻击-25");
                		                System.out.println("生命剩余值:"+HP);
                		                System.out.println("很遗憾您已死亡");

                		                break;
                		            }
            		        }
        		    }

         		}